package org.example.Test;

import org.apache.commons.compress.utils.Lists;

import java.time.LocalDate;
import java.util.List;

public class LocalDateTest {
    public static void main(String[] args) {
        LocalDate date1 = LocalDate.of(2023, 10, 1);
        LocalDate date2 = LocalDate.of(2023, 11, 1);

        if (date1.isBefore(date2)) {
            System.out.println("date1 在 date2 之前");
        } else {
            System.out.println("date1 不在 date2 之前");
        }
        System.out.println(date1.minusDays(-5));

        List<String> test = Lists.newArrayList();
        test.add("1");
        test.add("1");
        test.add("1");
        test.add("1");
        test.add("DATA_DT");
        System.out.println(test);

        String join = String.join(",", test);
        String replace = join.replace("DATA_DT", "QWER");
        System.out.println(replace);
    }

}
